package crowMessenger;


import javax.swing.JFrame;


public class ChatFrame extends JFrame{
	private static final long serialVersionUID = -1068909960690829343L;
	private ChatTabs tabbedPane;
	
	public ChatFrame(Buddy buddy){
		setTitle("Chat");
		setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
		setLocation(25, 25);
		tabbedPane = new ChatTabs(buddy);
		getContentPane().add(tabbedPane);
		pack();
		setVisible(true);
	}
	
	/* returns the jtabbedpane to buddylist in order to add new tabs or remove tabs*/
	protected ChatTabs getChatTabs(){
		return tabbedPane;
	}

}
